import { createApp } from 'vue'
import "@/styles/comm.css";
// element css
import "element-plus/dist/index.css";
// element dark css
import "element-plus/theme-chalk/dark/css-vars.css";
import App from './App.vue'
// vue Router
import router from "@/routers";
// pinia store
import pinia from "@/stores";
// element plus
import ElementPlus from "element-plus";
import zhCn from 'element-plus/es/locale/lang/zh-cn' // 引入中文语言包
// element icons
import * as Icons from "@element-plus/icons-vue";

const app = createApp(App);

// register the element Icons component
Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key as keyof typeof Icons]);
});

app.use(ElementPlus,{ locale: zhCn }).use(router).use(pinia).mount('#app')
